package com.stropheware.droidDefense;

import com.stropheware.util.AccelerometerListener;

import android.app.Activity;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;

public class GameActivity extends Activity {
	private GameBoardView gameBoardView;
	
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		initWindow();
				
		gameBoardView = new GameBoardView(this);
		
		setContentView(gameBoardView);
		gameBoardView.requestFocus();
	}
	
	@Override
	protected void onPause() {
		super.onPause();
	}
	
	
	private void initWindow() {
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, 
				WindowManager.LayoutParams.FLAG_FULLSCREEN);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
	}
	
	
}
